package com.woniu.guoguo.service.impl;

import com.woniu.guoguo.model.MenuActive;
import com.woniu.guoguo.dao.MenuActiveMapper;
import com.woniu.guoguo.service.IMenuActiveService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Richie
 * @since 2020-11-08
 */
@Service
public class MenuActiveServiceImpl extends ServiceImpl<MenuActiveMapper, MenuActive> implements IMenuActiveService {

    @Autowired
    private MenuActiveMapper menuActiveMapper;

    @Override
    public void decreaseOneActiveNumberByMenuId(int menuId) {
        menuActiveMapper.decreaseOneActiveNumberByMenuId(menuId);
    }

}
